The suggestions towards the end of this thread might perhaps be useful: Using KM with remote access to a headless Mac.
Like @Nige_S in that thread, I wondered whether a dummy display dongle might be worth trying – or maybe even software such as BetterDisplay (which used to be called "BetterDummy").