There is no perfect foot width so try them all. Resistance training is all about forcing adaptation so if you keep doing the same thing you’ll stop adapting. If it doesn’t challenge you it doesn’t change you.
If you’re a beginner the safest way to squat is to minimise pushing your knees out past your toes. This reduces the shearing force on the knees. You do this by thinking more about the hips go back rat