This is caused by a known JDK bug, that I was able to reproduce under JDK 11.0.15 and JDK 17.0.3 in Windows. To work around the problem you need to set -Djdk.io.File.enableADS=trueenableADS system property. To do it, in Intellij go to Run -> Edit configurations -> and paste -Djdk.io.File.enableADS=true in VM options field.
Alternatively, you can downgrade your JDK to previous minor version, for example 11.0.14 or 17.0.2. Next minor versions (11.0.16 and 17.0.4, respectively) will have the issue fixed.