This would be because you have already got paid invoices with the same number (maybe with a different site or previous tests)
Either prefix the invoices numbers with a unique code or number to make the invoice number different, or log into paypal and allow duplicate invoice numbers to be paid.
My Account > Profile > Selling Preferences
Block payments Limit payments, add instructions and more. Click Update
Block accidental payments: You may prevent accidental payments by blocking duplicate invoice IDs No, allow multiple payments per invoice ID