Foamy piss is not too worrying. It's called Pronutria,,,,If you have it bad... like can foam up to 2-3 inches from the toilet water. You should do a quick eGFR test to see if there is any problems in the kidneys.
Don't stress.. Ive had Pronutria for 30 or so years and my kidneys are
perfectly fine.