Program ATmega328PB Xplained Mini using MiniCore

It’s not using the right programmer type in the avrdude cmd line for an xplained mini.
See if there is an “medbg” entry is the list of programmers.