Player spawns underground after changing sea level v1.20.1

Right now i have modified default sea level, and found out that after doing that player always spawns underwater, and sometimes even underground. How to fix that?
Continue to help post