What tablet driver are you using? If you're using OpenTabletDriver you can unbind the buttons in the "pen settings" menu which will disable them. From what I see here: https://www.xp-pen.com/faq/how-to-setup-express-keys-on-windows.html, this is also possible in XP-Pen's software.