The STM32 has a 3.3V supply voltage.
You don't need 4 batteries, 3 is enough.
I don't remember the maximum allowable voltage, it seems to be 3.6V, but I would recommend connect Schottky diode with 3 batteries to slow down a little. And this will become a protection against the struggle of power sources.
At the same time, there is no need to cut anything instead, just connect batteries with diode to 3.3V pin.