Happily, this is a PC game. That means there are endless options to deal with problems like this. One of the first things I did when I started playing was script the module-access process. I just press a button to open the panel, and another to close and reconnect it.
I use a G13 gameboard, and it has a Lua script API, so I used that. If I had no third-party hardware that offered scripting, I’d use Autohotkey – it can absolutely do the same thing, though it is a powerful tool and a new user is going to have to spend some time with the help file to write a suitable script for this issue. There are simpler macro-software options, though they won’t all offer the right capabilities (mouse-clicks at specific screen coordinates), and they won’t all be free (Autohotkey is free and has a very extensive forum community, iot’s been around for decades).
With PCs there are always workarounds, either in hardware or software. Never live with an intolerable PC game issue of this nature (and many others) unless you play on a console.