You're going to go crazy thinking like this....always wondering if the littlest variable is accelerating your baldness.
Get on finasteride and minoxidil, stay on them if you don't get unbearable sides, and save for a transplant if you've lost significant ground. Obsessing over whether or not the cheeseburger you're eating is contributing your baldness is no way to go through life.
finasteride, minoxidil, transplant, Toppik, hope and future techs. Hang in there and stop worrying so much. Easier said than done, I know, but trust me on this.
No one knows, it's fine for everyone here to be saying no to all of the above, but none of them know what the cause for your hair loss is. A bad diet or excessive masturbation could definitely be the cause for hair loss in some people, but for the majority it's just down to genetics.