That's just a deprecation notice since no block duration was supplied. It won't hurt anything and can be ignored (don't have debug mode or error reporting turned on on production sites).
That won't have any impact on your login redirect. Login redirect is entirely configure in your CB Login Module. Ensure you've configured it to redirect to profile using the below URL.
index.php?option=com_comprofiler&view=userprofile
Add &Itemid=MENU_ID_HERE to the URL if you also want to associate the login redirect with a specific menu item.
I updated my website to Joomla 5.0.2
From what version of Joomla and was the login redirect working fine on that previous version of Joomla?