That clearly indicates an error with your DB credentials or even your DB setup. Nothing InvoicePlane can help directly. I would recommend googling how to setup XAMPP properly.
Please also make sure you are using XAMPP with compatible versions (so no PHP 8 or 8.1)