I have the same problem. I bought my MacBook Air M1 less than 6 months ago. Didn't use it on battery much because I almost always needed to use external SSD. And when I use external devices the battery drains 2-3 times faster. So I used it mostly plugged-in. Also, 99% of the time I used M1 optimised apps (Safari and the latest version of DaVinci Resolve).
Now, I have only 18 charging cycles and it shows the Maximum Battery Capacity of only 98%. This is outrageous, Apple.
Also, it quickly loses charge when in Sleep. 10-15% overnight, easy.
And once, I noticed that it lost charge when it was turned off. I didn't use it for a week or so. Before that I turned it off (I clicked Shut Down not Sleep in the menu). When I turned it on again I saw that it lost almost all the charge. I was shocked. Even my old laptop doesn't lose charge when it's turned off. Its battery degraded a bit but it still holds the charge when you don't use it. So why my new Mac can't do that?
The Diagnostic tool shows no issues, so all I can here from Apple Support is "Batteries are consumable products. They degrade overtime. Yada yada yada..."
I agree batteries degrade but not at the rate of 2% every 20 charging cycles. If this was the case, we would change our phones batteries few times a year.
Shame on you, Apple. Shame on you.