As others said, Twilight Forest forces you to do a progression style through advancements, and the Hunger effect happens if you go to the Swamp without killing the Naga, and the Lich in this order. Although, with my girlfriend, I had a different problem.
From the middle of nowhere she got a hunger style effect (Tho it appeared as if it was "Resistance") that was with a 2 second span that kept restarting over and over. The hunger effect kept going on not only on the Twilight Dimension, but it kept on the Overworld aswell. We weren't able to find any answers to the problem, so I tried using cheat to solve it.
To solve it, I took all of her advancements in Twilight away (Using the command " /advancement revoke (player) from twilightforest:root " ), that way, in any place that she stepped without those advancements, she would be with the respective effect from the area. Then, I made her go near the Lich castle, that way she would be with the Lich effect, and then I tried to clean her effects using the command " /effect (player) clear ", but we were unsuccessfully. Then without giving her any advancements, she went near the Aurora Castle, and she obviously got the Frozen effect. Then, I, instead of using the " /effect clear ", I used the " /advancement grant (player) from twilightforest:root ", that way she received all of the Twilight's achievements, making hers effects go away, including the Hunger one.
I know that it isn't truly fair, 'cause we not only used cheats, aswell as I gave her ALL the Twilight advancements, but it was the only way that we were able to solve the situation without having to mess with the mod programs itself.
I hope that it can help anyone looking for solving this problem, because we weren't able to find any kind of help we needed online.
Technic Launcher
Modpack Tekxit 3 (Official)
Twilight Forest mod ver. 1.12.2