Tienes 2 opciones a mi parecer...
1, Controlar el overflow... esto es el excedente que tengamos, y podríamos usarlo mejor para el height, si es que quieres aplicarlo.
2, Controlar el word-wrap
En este caso, usaremos word-wrap para ajustar el texto dentro del contenedor.
Para ello agregamos word-wrap, y le damos break-word, que romperá la palabra para que pueda entrar dentro del contenedor.
Si necesitases mantener una palabra completa, igual usarías el word-wrap, pero "normal" así no romper la palabra, y que si entre el el contenedor.
<p style="
background-color: rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 300px;
word-wrap: break-word;
height:100px;">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
<p style="
background-color: rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 300px;
word-wrap: break-word;
height:100px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>