Try this :

        protected $_productCollectionFactory;
    
        public function __construct(
            \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
            array $data = []
        ) {
            $this->_productCollectionFactory = $productCollectionFactory;
            parent::__construct($data);
        }
    
    
        
        public function getProductCollection()
        {
            /** @var $collection \Magento\Catalog\Model\ResourceModel\Product\Collection */
            $collection = $this->_productCollectionFactory->create();
            return $collection;
    	}