Is it safe to eat a chicken that died from heatstroke?
Generally speaking, chickens that have died from heatstroke can be eaten if the time of death was short and the meat is thoroughly cooked. However, they should not be consumed if the time of death was prolonged or if the meat hasn't been completely cooked. Detailed explanations are as follows:

Chickens that have died from heatstroke and have been dead for only a short period may still have unspoiled meat. Thorough cooking can kill potential microorganisms, making the meat relatively safe to eat without causing significant harm to the body.
If the chicken has been dead for a long time, high temperatures can accelerate meat spoilage, leading to bacterial growth and the production of harmful substances. Even cooking may not completely eliminate toxins. In cases where the chicken hasn't been fully cooked, microorganisms may not be completely killed, and consumption may cause gastrointestinal discomfort. Therefore, such meat should not be eaten.
When encountering chickens that have died from heatstroke, first determine the time of death. Be sure to thoroughly cook the meat before consumption. If any odor or signs of spoilage are noticed, discard the meat immediately.