I once had a Green Arowana that I fed some dead SuperWorms to, gave it like 4-5 pcs I think. The next morning it went belly up.
The problem is you don't know why the worms died. Even if you did, the possibility of alien parasites and bacteria forming after they died is a very real possibility.