This is something you will need to discuss with your own IP - and it will depend on whether this eventuality was provided for within the terms of the IVA. Compensation for pain and suffering is not treated as an after-acquired asset in bankruptcy, so you could be lucky and be able to keep the money - or use it to effect an early settlement to creditors.