If the problem exists due to there being too many items on the USB bus,
or if one of the others (not camera) is drawing near the total output of
power the USB bus can provide, and if you have more than the keyboard
and mouse plugged into the computer, unplug the other peripherals.
If your computer does not already have a powered USB Hub, see about
getting one. Depending on the model of iMac (if G4) USB would either
be USB 2.0 or USB1. Not sure how backward compatible the newer
USB speed products are in this instance; but a powered USB Hub could
help if the only issue is too much demand on the computer's USB ports.
The powered USB Hub has an AC power adapter so it gets power from
the wall plug and not the computer's bus. This should help.
There may be some other issue in the USB based products you have
attached to the computer, so if the overload is due to some recent
addition or change of printer, or other add-ons, consider those as a
possible cause of the additional load.
In my computer set-up, the keyboard is directly attached via USB to
the machine, the only other USB cord from the computer goes into a
USB powered Hub. Mine is an older USB 1.1 hub, but it goes just fine.
From this Hub (a cheap unknown name with AC power adapter) one
of my printers is plugged in, and the Apple pro (black) mouse. The
only other USB item, plugged into the powered USB hub, is a data
cable to the APC UPS backup power supply. The uninterruptable
power supply is controlled by the Energy system preference panel
in the operating system, and it can shut down the computer by itself.
So, if the camera is only the tripping point of an issue involving USB
power usage, then there may be an overload in what is already
plugged into the computer; or it is very close to the USB bus' max.
The ports on the computer are powered to a certain limit, and over
that, other power sources (self-powered peripherals) are needed.
You may be able to get away with using a card reader for the Nikon.
I have one, but don't use it with my Nikon D70s; since I have three
batteries for the Nikon and they need to be used anyway. Batteries
need to be exercised, and will go bad from disuse; so I don't use a
card reader with my DSLR, nor do I with my Panasonic Lumix DMC-
FZ1. Both use different kinds of cards, and I have two card readers.
A card reader may also add a problem to the USB in that for some
card readers, the card may need to be plugged into the reader and
then the reader plugged into the computer, to be seen properly. Or,
in some cases, the reader first plugged into the computer, then add
the card to the reader's slot. Be careful, since unmounting the icon
of the card from the desktop has to be done before a connection is
changed; and damage to the card's disk image (readability) may be
a result of improperly unmounting the image or just unplugging the
card reader or camera before the icon is ejected or dragged to trash.
If a powered USB Hub does not help, the computer may need to
have the various ports and power supply (in computer) tested to
see if there is a problem; the USB ports may not be getting all the
power to original specification, or they may be overloaded.
In any event...
Good luck & happy computing! 🙂