Well isn't Riker often petty?
Not over her. Over new Captains, substandard officers, & his own dad? Oh yeah, petty AF.
But honestly, throughout the show he'd only ever been supportive, & understanding with Troi, except when she was being insufferable about losing her empathy schtick, & needed a little tough love IMHO. Oh... And I guess he was ready to write her off when she wanted a command promotion lol, but that was merited.
However, personally? He was always rather mature about her relationship stuff, like
The Price, and even about Worf. (at least until whatever that sudden & inexplicable AGT beef was) Even with Tom Riker, (who he handled poorly) he still kept it chill with Deanna, for the most part.
In fact, I always felt Troi was the petty one between those 2. She cold shoulders him after
Conundrum (like any of that was on him) deliberately belittles his position at the end of
Disaster, even if it was only a joke, & can't even let the guy play his trombone for people, without she has to try to make him screw it up on a song he struggles with. She's always quick to undercut him, as a jibe, or see him taken down a peg. Troi is a bit judgy & even puerile now & then IMHO (I suspect that's some of Marina poking through) lol