Can knee/ leg pain be caused by suddenly switching to wearing flat shoes after wearing high heels/wedge shoes daily for 10+ years? What can help?

Yes. You need to be evaluated to make sure you don't have a tight posterior muscle group. Then, your arch heigh should be looked at and if your arch lowers dynamically during ambulating. .