A man died and several others were rushed to hospital at a techno music festival, with health officials investigating a possible mass overdose event.