I've had a similar problem. Here's the crashlog:
https://pastebin.com/Tr4u7jMEI've already mentioned this in the discord, but I wanted to a put it here as well.
Whenever I mouse over an attack in a battle it just hard crashes to the launcher giving me an exit code 1 error.
One thing I noticed rooting around the log file is that it seems to not be finding the custom cursor that the mod uses. I don't know why. If you look in the pastebin it's at 321
[27Aug2022 23:26:31.744] [main/ERROR] [Pixelmon/]: Failure in setting cursor!
That may be causing the crash.
Either way, if anyone knows how to fix this, please let me know asap.