When Secure Boot is :

The system has detected that the Secure Boot protocol (which ensures only officially signed software can run) is turned off.

models—when entering or attempting to exit a bootloader-related state

To when flashing, you must disable Android Verified Boot (AVB) on critical partitions. Boot into fastboot and run: