Apple has not officially condoned or supported changing the serial number on any of its devices, including the M1 MacBook. According to Apple's support pages, modifying the serial number is not a recommended or approved process.
The logic board was replaced by a third party who did not have the tools to serialize it. The firmware has been corrupted. macbook m1 change serial number