Bayer was the first of two children born to Major General Stephan Bayer (1816-1893) and his second wife, Julie Henoch (1839-1888).
Bayer continued his career in the Prussian army and volunteered during the Herero and Namaqua Genocide in German South-West Africa in 1904.