I used to get something similar with bigger apps (more lines of code). If you search the forum for
java.lang.ExceptionInInitializerError you'll find quite a few similar posts I think, but probably no definitive answer.
At times I thought it seemed to be due to the fact that I had the project files in a folder that was being backed up to OneDrive (pausing OneDrive synching seemed to help).
Clearing all breakpoints seemed to help sometimes too.
I also tried extending the process timeout (in the IDE Tools>IDE Options>Configure Process Timeout).
None of these fixed the issue entirely for me though, and I lived with it for a while until I got a new, faster PC and the issue went away