Window problem 98 XJ8

The front passenger (Rt side) window opens on its own. This happens within a few seconds of either starting the engine or turning the key to accessories. At first the only way I could get the window to close was to use the key in the door lock. I did a hard reset which now allows me to open and close the window with both window lift switches. The problem of the window opening on its own persists. I close it with the switch and it reopens again.
Any suggestion.

Unplug each switch in turn see if it stops it.
If not I think you will need to replace the door module.
It could be a ground issue I guess. So worth cleaning them near the door hinge area, if you see an earth tag

Of course the key can also open windows.
Is that passenger window the first to open when requested by the key unlock being held to position