Input buttons flickering while using Ds4

I’m using a PS4 controller via DS4Windows. When I move the mouse, the input buttons on the screen quickly switch between keyboard-mouse and controller buttons, and the screen flashes. The game is still playable, but this is annoying. How can I resolve this problem?