I owned a brand new company Lenovo Thinkpad L480 for 2+ years. The battery was brilliant for 3-4 months initially when I used to do light workloads on it while on battery. Later, I needed the full power so whenever I worked on it I kept it on charger. It barely saw charge cycles above 50 during last 2 years. In the last couple of months when I removed the charger the battery worked fine until it drained to 80-85% range and then it would just randomly shut off (not proper shut down). Restart it and the battery would show a random percentage like 10% remaining. It's practically not reliable anymore.
Long story short, DO NOT keep your devices always on charging the heat and always keeping the battery near 100% is harmful for the life of the battery. This is not an isolated case, it has happened with another HP laptop I owned, used for gaming a lot always on charge.
My suggestion, charge the battery near 30% to max 85%. If you want to use for gaming remove the battery and then use on charger for longer durations. Your battery will last a lifetime (4+ years easy). I've been following this for 2 of my other laptops and results are great.
If battery is non-removable then I guess you can have software alternatives.