If the device fails to boot into rootfs for consecutive 3 times, then it will go into recovery boot.
You can recover from it by this post.
But please be aware that this is only to recover. It didn’t mean you won’t hit issue again.
To identify what issue you hit, you need to enable logs by this method and share us the log.