Accidental corrupted recovery mode partition and cannot longer boot to it
I solved it by creating a bootable USB macOS installer with createinstallmedia from terminal. Then I booted from it and disabled System Integrity Protection and installed Refind from there. I tried booting to Recovey HD from Refind and it worked just fine.