After first treatment failure
The recommendation for someone whose first 3-drug combination has failed is to switch to three or more new drugs.
If your first combination included an NNRTI then your second combination will include a boosted protease inhibitor and vice versa. This is even if a resistance test doesn’t show NNRTI or PI resistance to the first combinations.
The current recommendation is also to change to two new nukes.
If your first combination was boosted PI monotherapy, then the recommendation is to add two nukes.