Profit comes when their operating costs are less than the take home from any transaction fees and Coinbase rewards they’ve collected in the same period. It’s not a direct function of liquidity entering the system. It’s true that rising prices from new cash flow means more profit for miners, but that doesn’t imply the opposite. The price could stay constant for the next 100 years and miners that have found a way to remain profitable within that price point would be fine.