What Chrisdo said is true, but judging from the spinning behavior you described, you need to reverse yaw direction. If this is not set correctly you will get a spinning behavior because the PID controller tries to compensate the yaw error by adding more yaw, which is in the wrong direction it expects, then adds even more yaw in the wrong direction, and so on. It spins rather fast though… Although using a lot of trim might slow down the spin.
There is a checkbox ‘reverse motor direction’ on the configuration tab in newer betaflights, or use the CLI commands:
To make betaflight understand this change, the command given is (as of betaflight 3.2):
For older betaflight:
Note - setting these values will not make the motors spin the other direction. It simply tells betaflight that the motors are reversed so it can control the yaw accordingly.