How to do a configuration on RMAN with run block without save this configuration on rman
Instead of CONFIGURE, just use ALLOCATE to allocate a channel with the desired parameters. You will also have to give a name for the channel, which is C1 in the example here:

run {
ALLOCATE CHANNEL C1 DEVICE TYPE DISK MAXPIECESIZE 50M;
BACKUP DATABASE;
}