A major New Year’s music festival will be the first event in one state to offer pill testing, after 46 overdose deaths in 2022.