Contrary to what people think, it’s not running that causes the bad knee pains, but running with poor form. Unfortunately when you pick up running in 30s and beyond, you are trying too hard as you’ve forgotten how to move naturally, the way you did as a child.
There is no rocket science to it. You need to slow down and work on your strength training. Be patient as you’ve taken decades to master the art of moving inefficiently and unnaturally. It’ll all soon come together.