How to compile modified OnlineSubsystemSteam plugin

I modified the OnlineSubsystemSteam plugin in Unreal Engine 5 and need to compile it. The problem is:

  • Compiling with full engine source code would take about 3 days because it’s on my HDD
  • I can’t compile on SSD because I don’t have enough space (engine source needs ~150GB)
  • When I try to compile just the plugin, I get errors about SteamSocket module references

Error message when compiling only the plugin:

Copy
Module ‘SteamSockets’ (Engine Plugins) should not reference module ‘OnlineSubsystemSteam’ (Plugin). Hierarchy is Plugin → Project → Engine Programs → Engine Plugins → Engine.

Is there any way to:

  1. Compile only the modified plugin without full engine source?
  2. Or maybe compile it faster on HDD?
  3. Or any other solution?

Any help would be appreciated!