Holey Lights, Batman!

That is strange. But those are the same brand of LED that were in my 2006. Looks like a date code of 0106 on yours, January 2006 manufacture date maybe? I will check mine out later on today if I remember.
Sure does look like the resisters were mounted above the melted spot at one point. The only way I would see that happening is if the brake lights were on for a LONG time.

'Back in the day' when LED lights were a new aftermarket thing, it wasn't uncommon to see resistors mounted (usually with 2-sided trip tape) to the plastic housing. This is the first melt down I have seen, evidently it can happen.
I would not re-install them, either get a solid state turn signal relay or live with the fast flash.