Dont know if it's just me, but after defeating the gym Leaders in the Toy Box, the game just freezes, I think because aelita is not standing in the right place. Watched some Youtube videos and she should stay east from you, for me she stands northeast.
Btw i saved before defeating both of them because there is no chance to do it afterwards cause of the game crashing.
If you want to beat them just use the alolan muk and keep spamming knock off on the supports (pokemon on the left side) and then kill the pokemon on the right side.
Game.rxdata