pub fn study_registration_protocol_error(error: AppError) -> ProtocolError
Maps a Study registration failure to one safe stable protocol error.