That issue can be a hardware issue and it can be a sign that the firmware and T2 chip needs to be revived or restored.
Back up your data and test well so you know the backup is complete and good before you either seek repair or attempt to fix this. One of the options above will wipe your data intentionally.
To fix this, we use another Mac and Apple Configurator 2 to reload the non Mac firmware using an iOS-like DFU process described above. Your data will not be recoverable if service decides this is needed or swaps parts. Same if you attempt to revive things - this makes all data unrecoverable if it fails or if it succeeds. Be prepared to reinstall macOS and then load your data, Apps, settings from backup if you start this test. The test will determine if you just needed to reload the software that runs the T2 chip and Secure Enclave and BridgeOS or there’s an actual hardware failure. So far, we have seen software resolve this specific glitch in all cases so hopefully you don’t need a repair.