Yes, there is a way as long as you have not locked the bootloader, using magisk. You may want to read this post by @hirnsushi and the posts thereafter: Trapped in fastboot mode with locked bootloader and corrupted /e/ OS - #117 by hirnsushi
I was as in the same situation as you after flashing CalyxOS and was able to reset get_unlock_ability
to 1
before locking.
Good luck!