(Posting as an answer since I don't have enough reputation to post as a comment)
The issue you're describing can be found on the Godot GitHub here, created February 2023 and still open per the time of asking your question. It seems like it is a regression in the engine that is still being investigated. I wouldn't worry for now unless you are exporting your games with a console, where the amount of text dumped may lengthen your shutdown time considerably.