UE5 won't hot reload and it prevents project from packaging

When I have my game open in UE5 and I try to compile the code in visual studio it fails and says that UnrealEditor-Game binary can’t be opened. This prevents the game from packaging even if I make it not build when packaging. I tried deleting that binary and then compiling but it said it’s in use by unreal.