PBIBDs from weakly divisible nearrings and related codes