You said changed the pen's "battery"
I have an older surface 4 pro, but there are 2 different kinds of batteries. One controls the eraser button on top, the other controls the writing.
If your pen is like mine, that second battery is size AAAA
I had the exact same problem. Press the eraser...