While iterating from For Each Row, add one If condition to check if the desired column have some value or not. If it’s blank or no value, that is your end row.
Use Break activity and your bot execution will come out of the For Each loop.
Using If activity check for blank cells and if encountering a blank cell indicates the end of your data, you can use a condition to terminate the loop suing break activity.