VirtualMouseError

Can someone help me with this error? I made a canvas with a button that restarts my game. I use ps4 controller for a memory game, so you use left joystick to guide the target to specifix panels. You need to get 2 panels the same, you get the concept. Everything working perfect fine, restart button aswell with the normal mouse. But when i add the restart button so I can click it with X button on ps4 this happends: