The M1 features the , a dedicated secure subsystem co-processor. The Activation Lock status is stored within this hardware-level encryption, not just on the SSD or in the software firmware.
The most reliable way to remove Activation Lock is through official Apple channels. Activation Lock for Mac - Apple Support bypass activation lock macbook m1