No such film exists. Ben Stiller and Jim Carrey have never co-starred in a movie where Carrey portrays Death.
You may be thinking of The Cable Guy (1996), starring Jim Carrey and Matthew Broderick. In one scene, Carrey's character (Chip Douglas) dresses as a medieval executioner/Death figure during a "Medieval Times" dinner theater outing, but it is a brief gag, not a central role.