Make that capsule bigger.
And for testing, remove horizontal capsule, make default one bigger (needs to be bigger than fox). Then test it if its still gets embedded in walls. Just make default capsule radius as half of fox body length, and capsule height bit bigger than fox height.
If fox stops going into walls, you know its TOO SMALL capsule. From picture both capsules are just too small.