Crash when adding player BP from content browser

When I make a new level and try to drag my custom player BP to it from the content browser, the game crashes with an EXCEPTION ACCESS VIOLATION.

The first few lines of the crash report:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000002d0 UnrealEditor_Engine!UCharacterMovementComponent::ApplyRepulsionForce() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\CharacterMovementComponent.cpp:11080]

If I duplicate an existing level that has the player BP in it, there is no crash. The crash only happens when I have to drag the player BP from the content browser into the scene. The BP is custom made. I am using the Third Person Template’s gamemode and have set the default player class to my custom player BP.