Whenever I play Pokémon XD for a little while Dolphin gives me an error message and the game locks up. This typically happens during battles, but the error is not exclusive to them. Screenshots of the error can be found in the following link:
https://imgur.com/a/XyDeulV
https://imgur.com/a/XyDeulV