Gambling in Contests with Heterogeneous Loss Constraints