Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Not sure if this has been reported yet, and its probably similar to the Z-Parting Shot bug:
http://replay.pokemonshowdown.com/gen7ou-485006992
Turn 22 & 23
Z-Memento shouldnt heal when you manually switch out next turn