Can you confirm what distro/desktop environment you are using?
I’ve personally had varying issues with non-gnome environments while playing Starcraft II.
I was able to solve the problem by just changing the settings on Lutris, leaving Battle.net and other games with support for 32bits, that is, I am using D9VK with Virtual Desktop. So far I had no problems with the mouse cursor disappearing during the match.