The bounty to Cannot get ProjectContext for Project Online from Sharepoint Office 365 and get a 403 in .NET 8 was awarded to the wrong answer. My answer is the accepted one, and also with the most upvotes. It took me a while to validate it and to write an answer with my own screenshot from my lab.
The answer was posted after the bounty started. The edit that I made to the answer was to give more details after the person edited their question.
I flagged the question for help from a moderator yesterday, but I don't know if it's the right thing to do.