I realized that I am getting white hairs. (25 years old male here) and it really depresses me.
Is there a way to prevent white hairs? I am open to any advice.
Embrace it. Dunno what your natural hair colour is but if it's darker I think it'll look pretty good. Gives a bit of character, grizzles you up a bit. Bonus points if they're on your face too.
I knew this lad a few years ago who had a thick white moustache when he was about 17. No-one could ever take their eyes off it and he was always flanked with poon. I'd love a few grey hairs.
I stared getting some gray hairs at 23. I have friends at 18-20 that have a few. Get used to it. It adds character and makes you look older while retaining your more youthful face. Girls like it.