Oh I see. It looks a hardware issue. But just in case, have you tried to disable “PS/2 Mouse Emulation” on BIOS?
Change “PS/2 Mouse Emulation” to Off, and then save and exit the BIOS.
If you can not use right click, how about emulate right click with 2 finger click on OS level, called “clickfinger” in a mean time?