That issue can be a hardware issue and it can be a sign that the firmware and T2 chip need to be revived or restored.
I would back up your data and test you know the backup is complete and good before you either seek repair or attempt to 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. You should be prepared to reinstall macOS and then load your data, Apps, settings from backup.