Just some small observations as to both of those games…
The first one, your team ratings may have been better, but PG, SF, PF positions your opponent’s players had much better personal ratings (13.5 vs 15.0+). Also, you lost the rebound battle by a lot, and that is one of the factors I notice that contributes more than many tend to think, based on number of possessions/shot attempts. Also what is stamina on your starters? They played a lot of minutes and even if exhaustion didn’t hit completely on the center, fatigue very easily may have made a difference down the stretch for them all.
Second game, it looks more like bad luck with fouls- the gap in the number of free throw attempts is overwhelming, making me think that your team may have been unable to keep up in the waning minutes amid fouling for clock. Also your PF having bad game shape did you no favors, and again I am curious about stamina, particularly for SG who played full 48.