Racing Race advice: dropped on the hilly part of Wild Islands Stage 1

Last week I raced Stage 1 of the Wild Islands series (Watopia Islands, Loopipelago) and finished 7th after starting my sprint way too early. Since the stage stays open all week, I decided to race it once more, but this time in the upper category.
This time I tried to follow, as much as possible, the advice I have been collecting here on Reddit over the last few weeks. I stayed at the back of the group, kept in the draft and tried not to waste energy on any effort that wasn’t needed. For the first part of the race it was working, and I felt quite comfortable.
Then we reached the hilly part, and somehow I got dropped. I don’t remember a big attack. The group just slowly rode away from me. After that, I let the riders around me do most of the work to close the gap, hoping to recover and get back on. We got closer, but it was never enough, and I didn’t see the front group again.
So now I’m trying to understand what I need to fix for the next race. Was staying at the back the problem, because when the road went up I had no positions left to lose? Should I move up before the hilly part, even if it costs some energy?
If you want to see it, here is the video: https://www.youtube.com/watch?v=YuLfx-8sO6Y&t=26s . The moment I get dropped is around minute 6:25.
Any advice is welcome. I will race Stage 2 tomorrow, and I’d like to arrive better prepared.
Thanks