The pension should be ringfenced from all fors of insolvency, however if you cash it in then the proceeds may be at risk - and if you are entitled to a lump sum draw down whilst an undischarged bankrupt this is likely to be grabbed.
How old are you, and when do you become entitled to draw the funds down?