perf/x86/intel/rapl: Add proper error handling