If you drink a potion of remove curse while withered and do not have enough XP to eat up the loss then it will give the error "Not enough experience to cast remove curse" while also destroying the item.
No bug. It still performs remove curse.
Really? Huh. I don't think there were any spell effects or "You feel alleviated" message.