pub fn validate_priority(priority: u8) -> Result<()>
Validate that priority is in the valid range (0-4, P0-P4).