Wacom stylus side button stopped working as eraser
I reinstalled Photoshop on other hard drive and after that, my tablet stylus button stopped working as eraser. Everything else in the tablet driver works properly including pen pressure, both buttons work as well. Only the eraser function uses the same tool I used before no matter which button it is set to. It also doesn't just draw with the alt color; no matter which tool was used before, it keeps using that tool.
I have Wacom Bamboo Pen CTL-470 and it only seems to have one possible driver I have downloaded from wacom's official site. I have uninstalled and reinstalled the driver and restarted my computer. The Photoshop version I now have is 22.5 and I thought that would be the issue as the problem only started after reinstalling Photoshop, but I tried going back to 22.4.3 and the problem still occured.
The problem also seems to be definitely a Photoshop problem as the eraser tool set on side button works fine on other softwares (tested on Aseprite).