@VJain03 I have written a simple query to read the dam:sha1 property of an asset, it brings the assets with that property. If your query gets time out or traversal error, please check the property exists in index.
path=/content/dam/pathtoassetfolderp.limit=-1property=jcr:content/metadata/dam:sha1...