How can I fix my door physics so they work properly?

In this case you should use swing motion, not twis. And put your door slightly off the ground.