When an invoice is converted from a quote, that invoice cannot currently be deleted. If this quote has been converted in error, all of the products on that invoice are treated as sold, removing them from the In Stock figure when the invoice is posted.
As a workaround, if the invoice hasn’t been posted, edit the invoice to remove each of the invoice lines. Once removed add a single $0 line to post the invoice.