Others have reported
maxing out various sized vessels and keeping a close watch for boil overs, so I think it is OK.
You could do it by a modified BIAB process - mash with however much water will fit, dunk sparge and return it all to the pot, boil what you have and add makeup water afterwards. That is what I do for 5.5 gallon batches in an 8 gallon pot. I have a little more leeway, but same idea. I still get boil overs on the hot break 'cuz I get bored and don't watch it closely.
It also depends how much grain you are using. A heavy beer with more than 12 pounds per 5 gallons would be difficult to scale to 8 gallons and fit all the mash in a 9 gallon pot.
Here is a mash calculator. Scroll down to see "Can I mash it?" Say 10 lbs per 5 gallon batch, so 16 lb for 8 gallons. Assume 1.5 quarts per lb of grain. The calculator says the total mash volume is 7.3 gallons. Assume water absorption is 1.3 gal/lb by
this source . Your 16 lbs retains 2 gallons, so now you are down to 5. Dunk sparge with 3 gallons and back up to 8. Expansion at boiling is 4% so that is 8.3 gallons. Might keep a water spray bottle handy. Might try some Fermcap-S foam inhibitor. I would not add hops until after the hot break.
Boil it down to 7 gallons and after cooling to about 80F, add a gallon block of ice to bring it down to 65F.
The Magic 8 ball says "As I see it yes"