The retailer is expected to record a loss of up to $40m for the second half of 2024.