A hack to avoid this: write your ideas down. I have a gigantic 100+ idea list that I built a habit around using as my single source of truth. Works wonders to get otherwise prickly ideas out of your head. The best part is seeing whether or not that idea still feels important later. A lot of stuff I was psyched about later became a 'meh' which taught me a lot about 'handling my high' when a new idea pops into mind.
I feel I get this without writing my ideas down. If an idea is important enough or powerful enough, I'll remember it, I'll think about it weeks from now. Then I'll work on it