>>83068957 (OP)
meditation, self reflection, try to understand the mind and learn to control it. Not in a forceful way, but in a way you can let go and allow the thoughts to evaporate. Emotions and memories only get activated when we give it our thought energy. Sometimes it's automatic, like being triggered, but a lot of times we're allowing it to happen by ruminating
almost like that exercise, "You are now manually breathing"
similar is the rumination, over time it becomes unconscious habit. start to at least "Manually ruminate" and then you can "Manually not ruminate" and start to shift your brain's neural pathways