Hello,
Today I tried to play Minecraft modded on my MacBook Pro with M2 chip. When I pressed play, exit code 255 appeared. Then I learned how to fix this error by putting -Dfml.earlyprogresswindow=false in the JVM arguments. This only worked once. Now every time I try to press play a new error appears thats not on the Minecraft launcher.