For me personally, it is very important to always maintain flexibility in the entire composition process - mentally as well as technically.
Mentally, it is essential to always be able to break with certain expectations. If, for example, I compose a bass line and get stuck, it is always helpful to ask yourself whether this melody could not perhaps become something completely different. Wouldn't the "bass line" perhaps be cooler if it played 3 octaves higher and done with long rather than short tones - instead of being dry, it could get a very atmospheric mood as well ...
Very much connected with this is the technical flexibility, which is the reason that I designed my own Ice Ages synthesizer with Reaktor. Because, just like with the composition, it should be possible for me to change the sounds at any time. It is possible for me that I make the bass line so noisy that it slowly becomes a drum track where you can no longer hear the pitches. Because with my self-constructed synthesizer, I can fade any sound from a smooth, spherical sound to a brutal power noise sound at any time.
And as long as this mental flexibility is retained, I can quickly find my way out of any musical crisis, should I ever have a creative hole.