How do I fix error: 'General error during conversion: Unsupported class file major version 65'

Godot Version

4.2.1 macOS


Even though I have completed all the steps in the documentation, I am getting the error shown in the screenshot.

I’m using macOS, how can I fix the problem?

Does anyone have any ideas that can help with this?