I get headache if I see tv or listen to music for more than an hour or two. It is more if sound is loud. Is there any thing to prevent it?

Turn down volume. If the problem is loud noise then turn down the volume. If there is someone in the house with poor hearing who requires the volume up then earplugs for you or hearing aid for them is your best bet. If the problem is normal noise causing a headache you should see a doctor . This could be a sign of ear abnormalities, brain tumors, certain types of headaches or other medical conditions.