Does that mean they wasted all the resources that they dedicated to mine that block?
Yes, exactly, they wasted energy for hashing, they lost around 6.25+x bitcoins that they could've gained if their blocks haven't been invalid.
Invalid blocks 783426 and 784121 were mined by F2pool with little too many SigOps, bummer! See interesting discussion here:
https://b10c.me/observations/11-invalid-blocks-783426-and-784121/Invalid block 809478 was mined by MARA pool and was invalid due to faulty transaction ordering. Very uncommon. See interesting analysis here:
https://b10c.me/observations/07-invalid-block-809478/