Maybe he can not work on the show or something?
Not according to his studio contract, which also controls his film production company. If he is assigned to a project by a studio, he is contractually and legally obligated to make a film, or be seen as breaching his contract with the studio. As for the
Family Guy example, consider that Seth McFarlane recently left FOX-TV because the "House of Mouse" interfering on
The Orville, and is currently working at HULU and Peacock/ NBC-TV, citing "studio politics":
Fox was lucky there was a man who possibly can do all the things that make us laugh and cry, but now it appears Seth MacFarlane is leaving Fox in tears amid the ongoing Hollywood writer’s strike. The #FamilyGuy creator and his showrunners walked out in support of the Writers Guild of America...
www.ign.com