Flashing Atmega328PB only works once

Which hardware package are you using to add support for your ATmega328PB?