Is there a way to run Electrum server (either ElectrumX or another project) on a pruned node?
No, you must be running a full Bitcoin node. Otherwise, it would not make any sense since your or someone else's client would not be able to synchronize transactions older than 2 days (assuming that it was possible to set up and you kept the default pruning settings).