Change Slug Before Hook - avoid error message by returning a modified Slug

This should solve your problem: