The only way I can see Jim Carrey coming back for Sonic 4 (if he doesn’t want a huge role) is to have him as a hologram/projection or in like a ‘timely death’ video where he explains in his death, his final project to defeat Sonic will commence (metal sonic)