Autopsy 4.21 not running on MacOS Sequoia

Hi All,
Hope you are well.

I am currently getting this error after running bin/autopsy in my terminal after the installation:

Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I thought it was related to openjdk and liberica but it wasnt. After setting to liberica, the error still persist.

I was wondering if anyone else got an error like this before, and if resolved, how did you do it ?