For the future, simply setting the collision to continuous on the rigidbodies will prevent them from going into each other, it will also solve the issue of passing through walls. One easy way to improve physics without much trouble