Private credit firms are shifting investments from software to asset-heavy sectors like infrastructure and industrials amid AI disruption concerns.