This line does not lose you a rook. It wins you a minor piece in the end. You have not taken into consideration that you just won their rook. So the entire sequence trades off the rook on h1 for the rook on f8, and you get the bishop for the pawn. You are up a minor piece and two pawns in the game if you defend correctly. That is the equivalent of a full rook. Also you can eventually get you knight out safely so they don't gain back some of the material.
Hope this helps.
Can someone give me advice on how to avoid this check mate situation that loses me a rook if I defend agents it? The analysis broad basically wants me to sack my rook for the Bishop. How can I avoid this situation all together? These hyper aggressive attacks by other noob players like me is annoying. Every time I find a way to stop it, I encounter something new I feel like I can't stop. ( I WAS BLACK IN THIS GAME)