Scratching male parrot

My male yellowhead parrot who is about 30 yrs old is scratching under his beak and regurgitating his food sometime with the scratching. My vet thinks that this a behavior of him wanting to mate with me. I would appreciate any help as I was worried that something was hung in his throat. She said she examined him and sees nothing there.

Freddie Williams

She also gave him a round of batryl for diarrhea. She thought the diarrhea is caused from a hormon imbalance, mating time.