[fem] Output errors only on rank 0