Hon Hai Precision Industry Co. posted a 2.4% drop in quarterly profit, suggesting weakening demand for Nvidia Corp. servers at the heart of the AI boom.