We don't have to debate when the show stopped being canon, appealing to diverged timelines in seasons 5 and 7. There's a simpler way: The entirety of the show just takes place prior to the Snap.
Setting aside the fact that then-Marvel TV head Jeph Loeb explicitly stated as much, there remains only two problems: the fact that season 5 ties in with Thanos apparently on his way to Earth with a battle having taken place in NYC per Infinity War, and that season 6 explicitly takes place in 2019.
Latter point first. Dates and time have proven time and again to be flexible and fluid in the MCU:
In Civil War, Vision says it's been 8 years since Tony announced himself as Iron Man, but in-universe, it's only been 6.- In Homecoming, this mistake is repeated when Vulture says it's been 8 years since the Battle of New York when in fact it's only been 4, a mistake they correct in Infinity War when Tony says that Thanos has been in his head for 6 years.
- The Winter Soldier contradicts itself in having two different dates for Bucky's birth.
Dates are there to be used when useful, but they've never been hard-and-fast.
Second, Thanos and NYC battle. We know from Homecoming that even though the Avengers "broke up" post-Civil War, there were still plans for the team and thus probably also a few missions (Age of Ultron also establishes that off-screen missions/battles were very much a thing). Rather than having the agents in a different timeline post-season 5, you can keep them in the "Sacred Timeline" by just seeing Thanos' coming as a false alarm that the Confederacy used to manipulate SHIELD, having had intelligence that the warlord titan Thanos intended to move on Earth for an infinity stone. The New York City battle could just be some other superhero battle that happened off-screen around the same time.
Yes, it is a retcon, but is by far the simplest solution to the problem of continuity error, and it keeps the show more firmly grounded in the MCU where it belongs. We don't have to constantly appeal to the multiverse, we can just take Loeb at his word. This is a problem that can be retconned away in one line of dialogue or an Easter egg and moved on from. It's the kind of thing that is routine in the comics.
However, I imagine that Secret Wars will make all of this moot anyway.