[NXCM-5222] Log stack trace only when debug is enabled on prefix file discovery failure

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>