Within the callback, you can add remove_action( current_action(), 'custom_title', 10 ), limiting each action to running only once.
remove_action( current_action(), 'custom_title', 10 )