Just to provide some more insight, the DX debug layer shows the following errors for the crash:
DXGI ERROR: IDXGISwapChain::Present: The application has not called ResizeBuffers or re-created the SwapChain after a fullscreen or windowed transition. Flip model swapchains (DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL and DXGI_SWAP_EFFECT_FLIP_DISCARD) are required to do so. [ MISCELLANEOUS ERROR #117: ]
D3D12 ERROR: ID3D12Resource::<final-release>: An ID3D12Resource object (0x00000224C9D9C660:'Unnamed ID3D12Resource Object') is being final-released before all GPU operations using the object have completed. This is invalid and can result in application instability. [ EXECUTION ERROR #921: OBJECT_DELETED_WHILE_STILL_IN_USE]
D3D12 ERROR: ID3D12Resource::<final-release>: An ID3D12Resource object (0x00000224C9D18AA0:'Unnamed ID3D12Resource Object') is being final-released before all GPU operations using the object have completed. This is invalid and can result in application instability. [ EXECUTION ERROR #921: OBJECT_DELETED_WHILE_STILL_IN_USE]
D3D12 ERROR: ID3D12DescriptorHeap::<final-release>: An ID3D12DescriptorHeap object (0x00000224C9D97BA0:'Unnamed ID3D12DescriptorHeap Object') is being final-released before all GPU operations using the object have completed. This is invalid and can result in application instability. [ EXECUTION ERROR #921: OBJECT_DELETED_WHILE_STILL_IN_USE]
D3D12 ERROR: ID3D12RootSignature::<final-release>: An ID3D12RootSignature object (0x00000224C9D18710:'Unnamed ID3D12RootSignature Object') is being final-released before all GPU operations using the object have completed. This is invalid and can result in application instability. [ EXECUTION ERROR #921: OBJECT_DELETED_WHILE_STILL_IN_USE]
DXGI ERROR: IDXGISwapChain::Release: Swapchain Released while fullscreen. Switch it to the windowed state first. [ MISCELLANEOUS ERROR #66: ]
Just to provide some more insight, the DX debug layer shows the following errors for the crash: