libs/cbi: Catch errors while creating named sections