Why magnetic force produced by bar magnet a conservative force while magnetic force due to current carrying element is non-conservative? Explain.

On #4 work energy theorem

#4 work energy theorem

Vivek sir did this numerical ,in which there was a sand bag and a ball is dropped upon it.

I got a different answer, please tell me what mistake I have done in solving