A soldier took her own life on an army base after her “psychotic and possessive” boss bombarded her with messages, an inquest heard.