Sorry for the late reply.
When I black out and return to the infirmary the game flashes white and the screen moves sideways and then the game is just frozen with me standing close to the nurse.
I've done the necrozma breaking out ending and went back into the portal as there was nothing else I could do and the exit door said "not now" or something like that.
I'm stuck in the ultra plant as i only have a klefki and no revives or anything but thats not the problem.
If i let myself die...