Wow! I've never seen anything like that before! Something must have been out of alignment perhaps.

Anyway, repair looks straightforward enough: replace the dead pulley, and then check the belt tension and geometry afterwards.

Cheers