A couple that come to mind from my childhood are
The Black Hole and, to a much lesser degree,
Tron. Both late 70s/early 80s. Maybe not directly made for kids but certainly kiddie friendly/kiddie adjacent. I mean both are Disney and both had toy lines so not not kids movies.
I'll do
Tron first -- the scene where Flynn is sucked into the game FREAKED ME OUT. David Warner's giant looming head was always unsettling too. (Also, speaking of his looming head, maybe
Time Bandits is worth a mention too).
I wrote about
The Black Hole in the Last Movie thread a few months back. It's so weird and dark. Upsetting robot-on-robot violence, some real creepy imagery throughout especially with a super trippy sequence at the end of the movie where the villain merges with his robot creation and (spoiler alert) DESCENDS INTO HELL. Again, ostensibly a kids movie. I had some of the toys