If your original foreign driving licence has expired, it is as if you had no driving qualifications at all. In such a case, it is not possible to convert a foreign driving licence into a Polish one. The only solution is to either renew your driving licence in the country that issued it and then exchange it for a Polish one, or start the procedure of applying for a Polish driving licence from the beginning. This means you will need to complete a full course and pass the theoretical and practical exams for B category.
For more details go to: https://www.gov.pl/web/gov/wymien-zagraniczne-prawo-jazdy-na-polskie