Keeping your mind healthy is the best way to avoid "Writers Block". Writers block can be brought on my stress, guilt, lack of rest and other things that go on in our lives. The best gift you can give yourself to avoid this is to cut everything out of your life that makes you UNHAPPY. This could be the Job, wife, girlfriend, friend, church, bills anything that does not honor you. I've recently done this, thinking that I could return to a situation and continue to work but I've found so much peace that I have no interest in returning. ( It was a friendship that I had to end). So honor you and your life will do the same.
I'm a musician/spiritualist
Some of my thoughts are not my upbringing but my experience through life. I'm open to learn so feel free to comment.