An overactive imagination perhaps? I know when I have hiked in 'exiting' places I can sometimes have vivid dreams of the danger that I've walked through.
The last time I experienced this was in 2015 in the Pyrenees. I was walking a sunken path with large stones and boulders everywhere and it was pouring hard and had been most of the night.
At one point along this path, by now only the right-hand side was steep, a plume of water, stones and earth blasted out from the right-hand side of the path straight in front of me, the noise and the water power was terrific! It gave me an instant real scare and I had two choices, to go back or stroll across the water flow which by now was 6-8' wide. I didn't want to go back so quickly took off my boots and socks and slung them around my neck, put on my flip flops and used my hiking sticks to prod my way through it. My worry was to find that under my feet there would be a hole of water to fall into, but thankfully there wasn't! I don't think I would have attempted it without the security of my sticks, in hindsight so very useful.
When I settled into my tent that night it played on my mind about the danger I could have been in, the next day my brain was back to normal.