I'm so disappointed. I have a specialized expert 27.5 carbon 2015 and the frame always make sounds like cracks specially when I'm using strongly the front brake. My bike had some full maintenances and the sounds continue.
Based on your description of the problem I'd look at your headset. If it's happening under front braking that sounds like the most likely location of the issue.