I have writer's block quite often. It comes in short spurts and long waves. And everyone finds different ways to overcome it. Sometimes just sitting down and writing can help, even if it's not the project you're working on. Find music that sets your mind ablaze with ideas. Reading a book can also help your imagination flow. Walking in nature or meditation can help. Or even taking a break and coming back to your work. Just don't completely stop.
Right now, I write in several genres, fantasy, romance, and sci-fi. I think it would be fun to write mystery or horror. But sadly, my brain doesn't work that way. But maybe one day. One never knows.