I run a 20" on my 039, and I think it's about to get an 18" since that is what came on my last purchase, an 046.
I think the OP's saw has a bit more power than my 039, but I would not go beyond 20" unless you are modding the saw, running skip chain, cutting only soft wood, etc.
If you need a 25" bar, you need a saw with three times that length in cc's, a 70 cc class saw.