Warnings overwriting errors

Product: PowerShell Universal
Version: 3.4.4

With the following code, the status of the job will be completed and display as warning, even though the output contains both messages:

Write-Warning "Slightly Bad Code"
throw "Bad Code"

This is running as a service on a windows server vm in powershell 7.2