An unclaimed Lotto Max ticket worth $40 million will expire Wednesday, the Ontario Lottery and Gaming Corporation says.