Omitting Right Mouse Button

I’m running into some bugs in my game specifically from clicking the right mouse button in certain specific ways. I never use this button in the game. Is there a way to have my game ignore all input from this button?

Remove binding for mouse2 from Input Manager