For something that long, it doesn’t really matter. The TSS will be close enough either way. It’s not a super precise metric to start with.
If the hike would be more fatiguing without the rests, then I think you’re going too hard during your active intervals.
Have you done an aerobic threshold drift test to determine the intensity you should be doing these hikes at?