I've got a MacBook Air M1 (a2337) with a drained battery and when trying to recharge it and power it up, nothing worked. I took it to an authorized Apple repair shop, and they could charge it just fine. I thought it was just the cable. I bought a new original Apple cable and it worked for me as well.
Once it had a charge and was powered on, I noticed that both cables I had before could charge it just fine.
Then the next time I drained the battery to zero, it happened again, and this time the new original Apple cable also did not work. I took it back to the same shop and they could also not charge it. They then handed it over to their technicians and then they informed me that the logic board needed to be replaced and it would take 3 to 4 weeks. That wasn't an option for me so refused the service. I tried charging it a few more times, and miraculously after a while it worked.
What stumped me was that once it powered up, it did so as if it had just woken up from sleep mode. It remembered the state of all my dozens of apps including all the tabs in Chrome and displayed them instantly from cache, not like what usually happens when you restart the computer or drain the battery to zero. Then I looked at the battery indicator and it said 1%.
Obviously, something is wrong and I am going to take it to another repair shop, but I was just wondering if anyone could shed some light on what might be causing this.