Can I manually/programmatically put the battery charging on hold?
Here's a tool that I've seen recommended by others:
https://github.com/davidwernhart/AlDente
It can limit your charging to specific percentages. However, I've not used it myself.