If you can’t access Recovery Mode at all, you should check your way to Recovery Mode:
Try different recovery shortcuts:
Command + R: local Recovery
Or enter Internet Recovery Mode, which connects to the Apple server to enter Recovery Mode. It is a remedy when the local recovery partition is missing or corrupted.
Option + Command + R
Make sure you’re holding keys immediately at power-on
If Internet Recovery works, open Startup Security Utility from there
If none of the recovery options load, then your recoveryOS is likely missing or corrupted (rare, but possible even on new machines).
In that case, you’d better recover files from your Mac first (If you’ve saved some important files on it). The only safe and stable way is to use a data recovery tool (such as iBoysoft Mac Recovery Mode)