I'm doing the same route home, last time I travelled on the Berlin to Warsaw train I just booked though the Polish railway website https://www.intercity.pl/pl/
Man from Seat 61 suggest Deutsche Bahn's website is easier to use. https://www.seat61.com/trains-and-routes/berlin-to-warsaw-by-train.htm#How_to_buy_tickets