TRP quadiem brakes - lever not in place
You can see in the first picture that a snap ring is out of place. I’m not familiar with these brakes but I’d have to assume there is something very wrong that must be dealt with by a qualified mechanic or the manufacturer. You don’t want to mess around with brakes, especially on a downhill bike. 

As it’s a new bike, take it straight back to where you purchased it and get it fixed or replaced under warranty. 

as