I tried to change the game, added more open areas, shortened the passage time, added running to the character. I think this would be the best option. The technique depends on the proximity of the triggers that cause it, this is solved by distance, there may be other ways, but I only know this one.