Preflop
I recomment topping up, so you always start with a full stack. I also think, this was a good spot to 3-bet, but calling is obviously better than folding.
Flop
You were not the preflop raiser, and I dont see any tremendous reason to lead (donk bet) here. When you take the passive route preflop, you are supposed to check your entire range on most boards and then maybe work in some check-raises. But ignoring that a bet for value is obviously fine here with TPTK. Solvers almost never use half pot, but its probably not a big problem at 2NL.
Turn
As played its fine to bet for value again. Now comes the interesting point, since one player call again, and then the other one raise. And at this point any single pair hand is generally just a fold. There are even theorems saying that. Also your stack is to short to just call here, so if its good enough to call, its also good enough to get it in. But realistically its not good enough to call, and you have to make a disciplined fold. Being able to make such tough folds is one of the ways, you will gain an edge on the competion at 2NL and even at higher stakes as well.
River
As played I dont blame you for getting it in now, but you should have folded on the turn.