I encountered a similar issue and resolved it by changing the cluster's Access Mode to "Single User" in the configuration.
The "Shared" option comes with limited functionalities, particularly with the Scala preview, which may lead to the error you're experiencing.
Cluster Configuration - Access Mode
I hope this helps you resolve your issue!