I wouldn't trust Avast much. This is a pretty mediocre antivirus in my opinion.
Avast is freeware and not worse protecting your PC then others like AVIRA, AVG, Norton,...
The current tests of antivirus software for Windows 10 from June 2023 of AV-TEST, the leading international and independent service provider for antivirus software and malware.
www.av-test.org
You can try bitdefender if you like.
If this doesn´t detect a trojan or virus, you should be safe. Eventually contact AVAST with your problem, usually these antivirus companies are very helpful in such circumstances. It´s there business and something like this can cost them image and money
Which laptop are you using?