0
I believe the issue here is that a noun or pronoun + a form of have can only be contracted if the noun or pronoun is the subject of this form of have. That means have has to be a finite verb, not an infinitive, for infinitives normally don't have a proper subject.
How could I've done this bet...