A drug delivery device includes a housing with a base and a cover that define an enclosure. A drug container disposed within the enclosure includes a drug reservoir configured to retain the drug therein. The drug container includes external features formed on an exterior of the drug container configured to interface with the housing so as to allow for dynamic movement relative to the housing to relieve stress on the rigid or flexible drug container when the needle assembly is actuated between the engaged and unengaged configurations. The drug delivery device includes a needle assembly with a needle and a drug channel connected between the drug container and needle assembly. A needle actuation mechanism is coupled to the needle assembly and actuatable between an engaged configuration and an unengaged configuration. The needle is extended from the housing in the engaged configuration and retracted in the housing in the unengaged configuration.