Had the same issue with my 2015 MBA. Had less than 100 cycles on it when battery replacement warning hit, but I kept it in clamshell mode 99% of the time, and it was five years old by that point, so I wrote the degradation off as a combination of age and rarely using it away from my desk.