As you add more and more elements to your std::vector, it will sometimes move them elsewhere in memory (to find more space). So the myClass instances that end up in your vector are not those that you pushed back in the for loop, they are copies of them. Therefore, your sf::Text instances end up pointing to sf::Font instances that no longer exist -- only copies of them exist, elsewhere in memory.
Two strategies exist to avoid this problem:
1. Store pointers to myClass instances, so that once they are allocated, they never move in memory. Use std::unique_ptr<myClass>, not myClass*
2. Store sf::Font instances outside, so that they are not copied and moved around all the time by the vector. Using a resource manager usually helps.