This seems to be a common problem on most MSI laptops, including my own GP62 6QF Leopard Pro. Supposedly, one way to fix it would be to update your BIOS, however, this didn't work for me.
I managed to fix this by adding this to /usr/share/X11/xorg.conf.d/10-quirks.conf:
Section "InputClass"
Identifier "Spooky Ghosts"
MatchProduct "Video Bus"
Option "Ignore" "on"
EndSection
This basically ignores messages from the Video Bus (check with sudo evtest), which seems to be sending psuedo fn+up fn+down messages randomly.
Then log out and log back in for the changes to take into effect.
Source: https://ubuntuforums.org/showthread.php?t=2314161&page=2
EDIT: Place this in /etc/X11/xorg.conf.d/10-quirks.conf, as opposed to under /usr/share, to prevent it ever being overwritten
FYI, the 10-quirks.conf file is used for exactly this cause -- to fix bugs caused by hardware incompatibilities.