You're not correct. A tertiary definition of "only" is "few". "One of the only" for a member of a small set if perfectly correct in English.
It would be more correct to say "there are only 4 positive integers less than 10. 8 is one of them."
https://www.merriam-webster.com/dictionary/one%20of%20the%20...