Intermittent 'Invalid configuration: dashboards.ps1' Error

Further PD based on those logs has lead me to this forum post: Issue in PSU 3.6.0 affecting home page from loading when using header content

I have -HeaderContent im my New-UDDashboard command.