I believe ^ that’s how I dealt with a similar issue in the past.
I created two different game modes - one where the HUD was enabled and one disabled for rendering. Then in my virtual camera blueprint, I have the ‘add to viewport’ nodes for the HUD behind this query:
AKA: Get the game mode > Is the game mode = ‘03_RenderMode’ ("_1" is on or “_0” is off) and then have fed the output into a branch node which controls the add to viewport.