The answer to this question is by no means settled science. Birds are the (only) descendants of dinosaurs, and they live preternaturally long lives.
https://abcbirds.org/blog21/bird-longevity/Longevity is usually roughly correlated with metabolism. Every critter gets a set number of heartbeats. If your metabolism runs fast, you die young. Bigger slower animals with lower metabolisms live longer.
This is not true of birds. They have high metabolisms and live long lives, sometimes as much as 60-70-80 years.
If dinosaurs are birds scaled up -- and slowed down -- their lifespans may have been enormous. A hundred years, two, five hundred? Nobody really knows. Birds live as much as ten times what should be expected for their size. Could dinosaurs have lived a thousand years?