Don't keep your feet parallel. Keep them in a V-shape, with heels pointing towards each other. Much easier.
Your doctor was probably right to give that advise for walking.
But when lifting weights it is a much more stable position for many, and as long as you ensure your knees track a line over your feet rather than at an angle it's not generally a problem.