I found your post and solve the error that you get as follows:
Instead of:
let exp = new Date();
exp.setMinutes(exp.getMinutes() + 10);
	const claims = {
			 'iss' : iss,
			 'exp' : exp.getTime(),
			 'aud': 'appstoreconnect-v1'
	};
Try:
let now = Math.round((new Date()).getTime() / 1000); // Notice the /1000
let nowPlus20 = now + 1199 // 1200 === 20 minutes;
const claims = {
										"iss": iss,
										"exp": nowPlus20,	
										"aud": "appstoreconnect-v1"
};
You will found a new Error due that you are not passing the requested parameters to the query, look at:
https://developer.apple.com/documentation/appstoreconnectapi/download_sales_and_trends_reports
I also still not solve the problem completely, here is the error that I'm already getting:
https://developer.apple.com/forums/thread/655667?page=1#625376022